<form class="form-horizontal" action="/admin/profile/password" method="post" accept-charset="utf-8">
    {% raw xsrf_form_html() %}
    <div class="form-group">
        <label for="old-password" class="col-md-2 col-lg-1 control-label">原&nbsp;&nbsp;密&nbsp;&nbsp;码:</label>
        <div class="col-md-3 col-lg-2">
            <input type="hidden" name="email" value="{{ current_user.email }}">
            <input type="password" id="old-password" name="old-password" class="form-control" placeholder="原登录密码"
                   onpaste="return false;" oncontextmenu="return false;"
                   oncopy="return false;" oncut="return false;">
        </div>
    </div>
    <div class="form-group">
        <label class="col-md-2 col-lg-1 control-label" for="new-password">新&nbsp;&nbsp;密&nbsp;&nbsp;码:</label>
        <div class="col-md-3 col-lg-2">
            <input id="new-password" name="new-password" type="password" class="form-control" placeholder="6-20位字符"
                   onpaste="return false;" oncontextmenu="return false;"
                   oncopy="return false;" oncut="return false;" minlength="6" maxlength="20">
        </div>
    </div>
    <div class="form-group">
        <label class="col-md-2 col-lg-1 control-label" for="confirm-password">确认密码:</label>
        <div class="col-md-3 col-lg-2">
            <input id="confirm-password" name="confirm-password" type="password" class="form-control" placeholder="确认新密码"
                   onpaste="return false;" oncontextmenu="return false;"
                   oncopy="return false;" oncut="return false;" minlength="6" maxlength="20">
        </div>
    </div>
    <div class="form-group">
        <div class="col-md-offset-2 col-md-2 col-lg-offset-1 col-lg-1">
            <input type="button" id="submit" value="保存" class="btn btn-primary">
        </div>
    </div>
    <div class="form-group">
        <div class="col-md-offset-2 col-md-2 col-lg-offset-1 col-lg-1">
            <span class="label label-info sr-only" style="font-size:14px;" id="msg"></span>
        </div>
    </div>
</form>